{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
<!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">因病缺课周报表</p>
                    
                </div>
                   <div class="box-body">
                    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   学年学期：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							      <select class="form-control" name="semester_id">
								  {%foreach from=$semester_lists key=key item=value%}
									  <option value="{%$value.semester_id%}"{%if $value.semester_id==$semester_id%}selected{%/if%}>{%$value.semester_xname%}{%$value.semester_name%}</option>
								  {%/foreach%}
									</select> 
						     </div> 
				       </div>
					   
					   <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   月份：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							      <select class="form-control" name="month_id">
								  <option>全部</option>
									{%foreach from=$month_lists key=key item=value%}
									  <option value="{%$value.month_id%}"> {%$value.month_name%}</option>
									{%/foreach%}
									</select> 
						     </div> 
				       </div>
					    <input type="hidden" name="a" value="disease.monthlist">
					    <button type="submit" class="btn btn-warning">查 询</button>


                      <table class="table table-bordered"  id="mytable">
                                    <tr>
                                        <td>学年学期</td>
                                        
                                        <td>月份</td>
										<td width="90">操作</td>
                                    </tr>
									{%foreach from=$semester_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.semester_xname%}{%$value.semester_name%}</td>
                                  
                                        <td>{%$value.week_number%}</td>
										<td>
                                            <a href="index.php?a=disease.monthdetails&semester_id={%$value.semester_id%}" class="btn btn-success btn-xs">查 看</a>
                                        </td>
                                    </tr>
									{%/foreach%}
                                     	                                    
                        </table>
				   </div><!--box-body -->
 
               </form>
			   <div class="box-footer" style="border-top:0px;">
					{%$page%}
			   </div>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{% include file="index.footer.tpl.php" %}
